package org.zfes.snowier.cloud.zbss.cms.topic.model;
import org.zfes.snowier.common.dao.IBaseModel;
public class CmsTopic extends IBaseModel{

	private static final long serialVersionUID = 1L;
	
	public CmsTopic() {}
	public CmsTopic(Long id) {
		this.setId(id);
	}
	//<-------------------------------------------->

 
	
	  private java.lang.Long parentId;
 
	@javax.validation.constraints.NotNull(message="名称不能为空")
	 @org.hibernate.validator.constraints.Length(min=0,max=150,message="名称长度不能大于150")
	  private java.lang.String name;
 
	 @org.hibernate.validator.constraints.Length(min=0,max=150,message="简称长度不能大于150")
	  private java.lang.String shortName;
 
	 @org.hibernate.validator.constraints.Length(min=0,max=255,message="关键字长度不能大于255")
	  private java.lang.String keywords;
 
	 @org.hibernate.validator.constraints.Length(min=0,max=255,message="描述长度不能大于255")
	  private java.lang.String description;
 
	 @org.hibernate.validator.constraints.Length(min=0,max=100,message="标题图长度不能大于100")
	  private java.lang.String logo;
 
	 @org.hibernate.validator.constraints.Length(min=0,max=100,message="内容图长度不能大于100")
	  private java.lang.String contentImg;
 
	
	  private java.lang.Long tplTopicId;
 
	@javax.validation.constraints.NotNull(message="排列顺序不能为空")
	  private java.lang.Integer sortNum;
 
	
	  private java.lang.Byte isRecommend;
 
	@javax.validation.constraints.NotNull(message="状态_D:# 0 禁用 1 可用#不能为空")
	  private java.lang.Byte status;
 
	@javax.validation.constraints.NotNull(message="站点id不能为空")
	  private java.lang.Long siteId;
 
	
	  private java.util.Date createTime;
 
	
	  private java.util.Date updateTime;
 
	 @org.hibernate.validator.constraints.Length(min=0,max=100,message="发布人长度不能大于100")
	  private java.lang.String creator;
 
	 @org.hibernate.validator.constraints.Length(min=0,max=100,message="发布人长度不能大于100")
	  private java.lang.String author;
 
	 @org.hibernate.validator.constraints.Length(min=0,max=500,message="摘要长度不能大于500")
	  private java.lang.String summary;
 
	 @org.hibernate.validator.constraints.Length(min=0,max=255,message="url长度不能大于255")
	  private java.lang.String topicUrl;
 
	
	//<-------------------------------------------->
	public CmsTopic setParentId(java.lang.Long parentId){
	 this.parentId=parentId;
	 return this;
	}
	public java.lang.Long getParentId(){
		return this.parentId;
	}
	public CmsTopic setName(java.lang.String name){
		this.name=name==null?null:name.trim();
	 return this;
	}
	public java.lang.String getName(){
		return this.name;
	}
	public CmsTopic setShortName(java.lang.String shortName){
		this.shortName=shortName==null?null:shortName.trim();
	 return this;
	}
	public java.lang.String getShortName(){
		return this.shortName;
	}
	public CmsTopic setKeywords(java.lang.String keywords){
		this.keywords=keywords==null?null:keywords.trim();
	 return this;
	}
	public java.lang.String getKeywords(){
		return this.keywords;
	}
	public CmsTopic setDescription(java.lang.String description){
		this.description=description==null?null:description.trim();
	 return this;
	}
	public java.lang.String getDescription(){
		return this.description;
	}
	public CmsTopic setLogo(java.lang.String logo){
		this.logo=logo==null?null:logo.trim();
	 return this;
	}
	public java.lang.String getLogo(){
		return this.logo;
	}
	public CmsTopic setContentImg(java.lang.String contentImg){
		this.contentImg=contentImg==null?null:contentImg.trim();
	 return this;
	}
	public java.lang.String getContentImg(){
		return this.contentImg;
	}
	public CmsTopic setTplTopicId(java.lang.Long tplTopicId){
	 this.tplTopicId=tplTopicId;
	 return this;
	}
	public java.lang.Long getTplTopicId(){
		return this.tplTopicId;
	}
	public CmsTopic setSortNum(java.lang.Integer sortNum){
	 this.sortNum=sortNum;
	 return this;
	}
	public java.lang.Integer getSortNum(){
		return this.sortNum;
	}
	public CmsTopic setIsRecommend(java.lang.Byte isRecommend){
	 this.isRecommend=isRecommend;
	 return this;
	}
	public java.lang.Byte getIsRecommend(){
		return this.isRecommend;
	}
	public CmsTopic setStatus(java.lang.Byte status){
	 this.status=status;
	 return this;
	}
	public java.lang.Byte getStatus(){
		return this.status;
	}
	public CmsTopic setSiteId(java.lang.Long siteId){
	 this.siteId=siteId;
	 return this;
	}
	public java.lang.Long getSiteId(){
		return this.siteId;
	}
	public CmsTopic setCreateTime(java.util.Date createTime){
	 this.createTime=createTime;
	 return this;
	}
	public java.util.Date getCreateTime(){
		return this.createTime;
	}
	public CmsTopic setUpdateTime(java.util.Date updateTime){
	 this.updateTime=updateTime;
	 return this;
	}
	public java.util.Date getUpdateTime(){
		return this.updateTime;
	}
	public CmsTopic setCreator(java.lang.String creator){
		this.creator=creator==null?null:creator.trim();
	 return this;
	}
	public java.lang.String getCreator(){
		return this.creator;
	}
	public CmsTopic setAuthor(java.lang.String author){
		this.author=author==null?null:author.trim();
	 return this;
	}
	public java.lang.String getAuthor(){
		return this.author;
	}
	public CmsTopic setSummary(java.lang.String summary){
		this.summary=summary==null?null:summary.trim();
	 return this;
	}
	public java.lang.String getSummary(){
		return this.summary;
	}
	public CmsTopic setTopicUrl(java.lang.String topicUrl){
		this.topicUrl=topicUrl==null?null:topicUrl.trim();
	 return this;
	}
	public java.lang.String getTopicUrl(){
		return this.topicUrl;
	}

}
